import request from '@/router/axios';

export const getUserlist = params => {
  return request({
    url: '/user/web/userlist',
    method: 'get',
    params: params
  }).catch(error=>{
    console.log(error)
  })
}

export const getRoleType = (params) => {
  return request({
    url: '/role/list',
    method: 'get',
    params
  }).catch(error=>{
    console.log(error)
  })
}



export const changeRole = (data) => {
  return request({
    url: '/role/change',
    method: 'post',
    data
  }).catch(error=>{
    console.log(error)
  })
}


